<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/jsp/common/_includes.jsp"%>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp"></jsp:include>
<link rel="stylesheet"
	href="/static/vendor/upload/css/jquery.fileupload.css" type="text/css" />
<link rel="stylesheet"
	href="../../../resources/ueditor/dialogs/video/video.css" type="text/css" />
<div class="ui grid">
	<div class="row">
		<div class="column">
			<div class="ui two column grid">
				<div class="three wide column">
					<jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
						<jsp:param name="index" value="41" />
					</jsp:include>
				</div>
				<div id="container" class="thirteen wide column">
					<div class="alert alert-success w200 center-block text-center "
						style="display: none;" role="alert"></div>
					<ol class="breadcrumb">
						<li><a href="/">后台管理</a></li>
						<li><a href="/company">企业管理</a></li>
						<li class="active">录入内容</li>
					</ol>
					<form class="form-horizontal" id="addForm" method="post"
						action="/company/add">
						<input type="hidden" id="js_titleImg" name="logoUrl">
						<div class="form-group">
							<label for="name" class="col-sm-2 control-label">企业logo</label>
							<div class="col-sm-5">
								<img id="preview" width="300px" height="170px"
									src="${attachUrl!=null?attachUrl:'http://placehold.it/300x170'}">
							</div>
							<div class="col-sm-2">
								<span class="btn btn-success btn-block fileinput-button">
									<i class="glyphicon glyphicon-plus"></i> <span>上传logo</span> <input
									id="fileupload" type="file" name="attachFile"
									data-url="/img/upload">
								</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">企业编号</label>
							<div class="col-sm-8 desc">
								<input type="text" class="form-control" id="js_title"
									name="code" placeholder="输入企业编号">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">公司名称</label>
							<div class="col-sm-8 desc">
								<input type="text" class="form-control" id="js_code" name="name"
									placeholder="输入公司名称">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">访问路径</label>
							<div class="col-sm-8 desc">
								<input type="text" class="form-control" id="pathUrl" name="pathUrl"
									placeholder="输入访问路径">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">公司描述</label>
							<div class="col-sm-8 desc">
								<textarea rows="5" cols="10"  class="form-control" id="description" name="description"
									placeholder="输入公司描述"    ></textarea> 
							</div>      
						</div>
						<div class="form-group" id="js_submit">
							<div class="col-sm-offset-3 col-sm-2">
								<button type="submit" class="btn btn-success">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>       
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"></jsp:include>
<script type="text/javascript"
	src="/static/vendor/jquery.validate/jquery.validate.js"></script>
<script src="/static/vendor/upload/js/vendor/jquery.ui.widget.js"></script>
<script src="/static/vendor/upload/js/jquery.iframe-transport.js"></script>
<script src="/static/vendor/upload/js/jquery.fileupload.js"></script>
<script type="text/javascript" src="/static/js/content/add.js"></script>
<script type="text/javascript"
	src="../../../resources/ueditor/ueditor.config.js"></script>
<script type="text/javascript"
	src="../../../resources/ueditor/ueditor.all.js"></script>
<script type="text/javascript"
	src="../../../resources/ueditor/dialogs/video/video.js"></script>


<!-- 实例化编辑器 -->
<script type="text/javascript">
	window.UEDITOR_HOME_URL = "../../../resources/ueditor/";
	var ue = UE.getEditor('myeditor');
</script>
